package libs.yzx.zaza.za;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;

/**
 * Created by Administrator on 2016/7/19.
 */
public class RLayout extends AbsPullLayout {
    @Override
    protected View getHeader() {
        return new TextView(getContext());
    }

    @Override
    protected int getBoundaryLength() {
        return 200;
    }

    @Override
    protected int getHeaderHeight() {
        return 100;
    }

    @Override
    protected void setPullNormalUI(View header) {
        TextView tv = (TextView) header;
        tv.setText("继续拉");
    }

    @Override
    protected void setPullReadyUI(View header) {
        TextView tv = (TextView) header;
        tv.setText("继续拉");
    }

    @Override
    protected void setPullLoadingUI(View header) {
        TextView tv = (TextView) header;
        tv.setText("继续拉");
    }

    public RLayout(Context context) {
        super(context);
    }

    public RLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
    }
}
